import {type App} from 'vue';
import Role from "./icons/IconRole.vue";
import IconUser from '@/components/icons/IconUser.vue'
import IconCircle from '@/components/icons/IconCircle.vue'
import IconHorn from '@/components/icons/IconHorn.vue'
import IconStatistic from '@/components/icons/IconStatistic.vue'
import IconMessage from '@/components/icons/IconMessage.vue'
import FolderOpen from '@/components/icons/FolderOpen.vue'
import IconPlay from '@/components/icons/IconPlay.vue'
import IconStop from '@/components/icons/IconStop.vue'
import IconCopy from '@/components/icons/IconCopy.vue'
import IconCheckCircle from '@/components/icons/IconCheckCircle.vue'
import IconCloseCircle from '@/components/icons/IconCloseCircle.vue'

const allGlobalComponent = {
    Role, IconUser, IconCircle, IconHorn, IconStatistic, IconMessage, FolderOpen, IconPlay, IconStop,
    IconCopy, IconCheckCircle, IconCloseCircle
};
export default {
    install(app: App) {
        for (const key in allGlobalComponent) {
            if (Object.prototype.hasOwnProperty.call(allGlobalComponent, key)) {
                app.component(key, allGlobalComponent[key as keyof typeof allGlobalComponent]);
            }
        }
    }
}
